home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0050-Re Undoable lists-Oct89 < prev    next >
Encoding:
Text File  |  1989-10-11  |  891 b   |  27 lines  |  [TEXT/GEOL]

  1. Item    5842629                         11-Oct-89        16:29
  2.  
  3. From:   ROSENSTEIN1                     Rosenstein, Larry
  4.  
  5. To:     D1282                           Power Up,PRT
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Re: Undoable lists
  10.  
  11. I think the basic approach is correct.  This is the filtering technique of
  12. handling commands, in which you don't changethe actual data structure until the
  13. command is committed.
  14.  
  15. As far as the implementation goes, if you add a field to each element of the
  16. list, then you really don't need to make a subclass of TList.  Your command
  17. object would simply sequence through the list and adjust the item states and/or
  18. remove items as necessary.  Also, when displaying the data in the list, you
  19. have to examine the state of each item to see if it has been deleted.
  20.  
  21. Larry Rosenstein
  22.  
  23. P.S.  Why would this be trivial in Eiffel?
  24.  
  25.  
  26.  
  27.